<?php
class authController{

	function index()
	{
		if(isset($_SESSION['user'])){
			$user	=	$_SESSION['user'];
			$user	=	json_encode($user);
			$url	=	$_GET['url']."?user=".$user;
		
			echo "<script>window.opener.location.href='$url';window.close();</script>";
		}
		else
		{
			echo "<script>window.close();</script>";
		}
	}
	
	function xxx()
	{
		echo 'xxx';
	}
	
	function z()
	{
		die('zzzz');
	}
}




?>

